<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="../favicon.ico">
    <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link rel="stylesheet" href="/Public/css/ace.min.css" />
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">
        .span_right{
            float: right;
        }
        .down-menu{
            height: 35px;
            line-height: 35px;
        }
        .search_div{
            background: none;
            border: none;
            width: 450px !important;
        }
        .m-search{
            display: flex;
            margin-left: 30px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>联络中心-
                        <small>客服在线反馈记录</small>
                    </h5>
                    <div class="ibox-tool">
                        <form method="get" action="<{$SRVER_NAME}>/admin.php/ContactCenter/kf_user_list_feedback"  style="display: flex;   margin-right: 30px;" class="pull-right mail-search">

                            <input name="status" type="hidden" value="<{$status}>">
                            <div class="m-search" style="display: flex">
                                <input type="hidden" name="rid" value="<{$rid}>">
                                <input  class="form-control input-sm" type="text" name="feedback" placeholder="搜索文字反馈" value="<{$feedback}>"/>
                                <div class="input-group-btn">
                                    <button type="submit" class="btn btn-sm btn-primary">
                                        搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="ibox-content">

                    <table class="table table-striped table-bordered table-hover" id="sample-table">
                        <thead>
                        <tr>
                            <th>用户名称</th>
                            <th>账号</th>
                            <th style="width: 400px">反馈内容</th>
                            <th>反馈时间</th>
                            <th>
                                状态
                                <select    style="width: 100px" name="status" onchange="status(this.value)">
                                    <!--<option value="0" <if condition="$status eq 0">selected</if> >全部</option>-->
                                    <option value="1" <if condition="$status eq 1">selected</if> >未回复</option>
                                    <option value="2" <if condition="$status eq 2">selected</if> >已回复</option>
                                    <option value="3" <if condition="$status eq 3">selected</if> >已完成</option>
                                </select>
                            </th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="data" id="vo"  empty="暂无数据">
                            <tr id="tr_<{$vo.id}>">
                                <td><{$vo.username}></td>
                                <td><{$vo.mobile}></td>
                                <td class="content" style="width: 120px;height:60px"><{$vo.content}></td>
                                <td><{$vo.ctime}></td>
                                <td class="color_blue"><{$vo.status}></td>
                                <td>
                                    <volist name="roles" id="vr">
                                        <if condition="$vr['name'] eq '查看详情'">
                                            <a class="btn btn-success btn-rounded"  href="<{$SRVER_NAME}>/admin.php/ContactCenter/kf_feedback_detail?id=<{$vo.id}>&name=<{$vo.username}>&feedback=<{$feedback}>&status=<{$status}>&page=<{$page}>&rid=<{$rid}>" >查看详情</a>
                                        </if>
                                        <if condition="$vr['name'] eq '添加来电沟通记录'">
                                            <a   href="<{$SRVER_NAME}>/admin.php/ContactCenter/add_tel_record?mobile=<{$vo.mobile}>&name=<{$vo.username}>&feedback=<{$feedback}>&page1=<{$page}>&rid=<{$rid}>"  class="btn btn-primary btn-rounded">添加来电沟通记录</a>
                                        </if>
                                        <if condition="$vr['name'] eq '添加外呼沟通记录'">
                                            <a   href="<{$SRVER_NAME}>/admin.php/ContactCenter/add_outbound_record?mobile=<{$vo.mobile}>&name=<{$vo.username}>&feedback=<{$feedback}>&page1=<{$page}>&rid=<{$rid}>"  class="btn btn-warning btn-rounded">添加外呼沟通记录</a>
                                        </if>
                                    </volist>
                                  </td>
                            </tr>
                        </volist>

                        </tbody>
                    </table>
                    <div class="dataTables_paginate paging_simple_numbers" >
                        <ul class="pagination">
                            <if condition="$tol gt 10">
                                <{$fpage}>
                            </if>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/js/content.js?v=1.0.0"></script>
<script>
    function status(value) {
        window.location.href='<{$SRVER_NAME}>/admin.php/ContactCenter/kf_user_list_feedback?status='+value+'&rid=<{$rid}>'
    }
</script>
</body>
</html>
